package com.vip.common.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * 数据库配置
 *
 * @author wgb
 * @date 2020/11/12 10:02
 */
@Configuration
@ConfigurationProperties("spring.datasource")
public class DatasourceProperties {
    private String url = "jdbc:postgresql://127.0.0.1:5432/vip_microservice?characterEncoding=utf8&useSSL=false";
    private String username = "postgres";
    private String password = "root";
    private String driverClassName = "org.postgresql.Driver";

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getDriverClassName() {
        return driverClassName;
    }

    public void setDriverClassName(String driverClassName) {
        this.driverClassName = driverClassName;
    }
}
